package com.yanfan.ccapicode.dao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yanfan.ccapicode.bean.UserClientInfoModel;
import com.yanfan.ccapicode.dao.entity.UserAuthorizeDO;
import com.yanfan.ccapicode.enums.ThirdPartyCloudEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * :)
 *
 */
public interface UserAuthorizeMapper extends BaseMapper<UserAuthorizeDO> {

    UserClientInfoModel selectUserClientInfo(@Param("userId") String userId, @Param("cloud") ThirdPartyCloudEnum cloud);
    /**
     * 查询云云对接用户授权
     *
     * @param id 云云对接用户授权主键
     * @return 云云对接用户授权
     */
    public UserAuthorizeDO selectCcapiUserAuthorizeById(Long id);

    /**
     * 查询云云对接用户授权列表
     *
     * @param ccapiUserAuthorize 云云对接用户授权
     * @return 云云对接用户授权集合
     */
    public List<UserAuthorizeDO> selectCcapiUserAuthorizeList(UserAuthorizeDO ccapiUserAuthorize);
}
